package com.ruoyi.project.system.domain;

import java.util.Date;

/**
 * 预约主表实体（仅修复类型匹配，无多余内容）
 */
public class ResTable {
    private Long id;
    private String resId;
    private Long userId;
    private String name;
    private String identity;
    private String phone;
    // 修复：departmentId 改为 Long 类型（匹配前端传递的数字ID）
    private Long departmentId;
    private Long doctorId;
    private String doctor;
    // 修复：datetime 改为 Date 类型（避免转换异常）
    private Date datetime;
    private Date createTime;
    // ResTable.java
    private int resolve; // 预约状态
    private int queryIs; // 问卷状态

    // getter/setter
     public int getResolve() {
        return resolve;
    }
    public void setResolve(int resolve) {
        this.resolve = resolve; 
    }
    public int getQueryIs() {
        return queryIs;
    }
    public void setQueryIs(int queryIs) {
        this.queryIs = queryIs; 
    }

    // 仅保留原始字段的 getter/setter（无多余方法）
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getResId() {
        return resId;
    }

    public void setResId(String resId) {
        this.resId = resId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    // 修复：departmentId 为 Long 类型的 getter/setter
    public Long getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    //
     public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public String getDoctor() {
        return doctor;
    }

    public void setDoctor(String doctor) {
        this.doctor = doctor;
    }

    // 修复：datetime 为 Date 类型的 getter/setter
    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}